package servlettest;

import javax.servlet.*;
import java.io.IOException;

/**
 * Created by hasee on 2017/9/23.
 */
public class ServletThree implements Servlet {
    ServletConfig servletConfig = null;
    @Override
    public void init(ServletConfig servletConfig) throws ServletException {
        this.servletConfig = servletConfig;
    }

    @Override
    public ServletConfig getServletConfig() {
        return null;
    }

    @Override
    public void service(ServletRequest servletRequest, ServletResponse servletResponse) throws ServletException, IOException {
        servletConfig.getServletContext().setAttribute("param","keweijie");
    }

    @Override
    public String getServletInfo() {
        return null;
    }

    @Override
    public void destroy() {

    }
}
